package com.deco.domain.other;

/**
 * 说明：点击菜单分类
 * 创建人：Q879095880
 */
public enum EnumUrlType {

    JD(1,"京东"),TM(2,"天猫");

    private Integer key;

    private String name;

    EnumUrlType(Integer key, String name) {
        this.key = key;
        this.name = name;
    }

    public static EnumUrlType getByKey(Integer key){
        for(EnumUrlType enumPlayType : EnumUrlType.values()){
            if(enumPlayType.getKey() == key){
                return enumPlayType;
            }
        }
        return null;
    }

    public Integer getKey() {
        return key;
    }

    public void setKey(Integer key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }}
